<template>
  <div class="site-wrapper">
    <header class="site-header">
      <nav-bar class="d-none d-sm-block" static init-variant="light" />
      <m-nav-bar class="d-sm-none" />
    </header>
    <main class="site-content">
      <nuxt />
    </main>
    <footer class="site-footer">
      <app-footer />
    </footer>
    <!-- <app-footer /> -->
  </div>
</template>

<script>
import NavBar from '@/components/NavBar';
import MNavBar from '@/components/m/NavBar';
import AppFooter from '@/components/Footer';

export default {
  components: {
    NavBar,
    MNavBar,
    AppFooter,
  },
};
</script>

<style lang="scss">
html {
  font-family: 'PingFangSC-Regular', 'PingFang SC', 'Source Sans Pro',
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  font-size: 16px;
  word-spacing: 1px;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}
body {
  font-family: 'PingFangSC-Regular', 'PingFang SC';
  font-size: 14px;
  line-height: 20px;
  color: #4a4a4a;
  letter-spacing: 0.44px;
}

*,
*:before,
*:after {
  box-sizing: border-box;
  margin: 0;
}
.site-wrapper {
  display: flex;
  flex-direction: column;
  height: 100vh;
}
.site-header,
.site-footer {
  flex-shrink: 0;
}
.site-content {
  flex: 1 0 auto;
}
</style>
